import listtest.MyArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-06-29
 * Time: 11:41
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);

        myArrayList.add(1, 100);
        myArrayList.add(2, 200);
//        System.out.println(myArrayList.indexOf(200));

//        System.out.println(myArrayList.get(-1));

//        myArrayList.set(2,2000);
        myArrayList.remove(200);

        myArrayList.display();
    }
}
